#include <iostream>
#include <string>
#include <signal.h>
#include <cstdlib>
using namespace std;
void handler(int signo)
{
    cout<<"signal:"<<signo<<endl;
}
int main()
{
    signal(SIGABRT,handler);
    cout<<"begin"<<endl;
    //raise(2);
    abort();
    cout<<"end"<<endl;




    return 0;
}
